package com.black.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.black.system.domain.SysNotice;
import com.black.system.domain.req.system.add.SysNoticeAddReq;
import com.black.system.domain.req.system.edit.SysNoticeEditReq;
import com.black.system.domain.req.system.query.SysNoticeQueryReq;
import com.black.system.domain.resp.system.SysNoticeResp;
import com.github.pagehelper.PageInfo;

/**
 * @author L
 * @description 针对表【sys_notice(通知公告表)】的数据库操作Service
 * @createDate 2024-08-19 10:07:23
 */
public interface SysNoticeService extends IService<SysNotice> {

    /**
     * 分页查询
     *
     * @param req
     * @return
     */
    PageInfo<SysNoticeResp> paginationQuery(SysNoticeQueryReq req);

    /**
     * 添加
     *
     * @param req
     * @return
     */
    boolean add(SysNoticeAddReq req);

    /**
     * 修改
     *
     * @param req
     * @return
     */
    boolean edit(SysNoticeEditReq req);

    /**
     * 根据id查询
     *
     * @param id
     * @return
     */
    SysNoticeResp findById(Long id);

    /**
     * 根据id删除
     *
     * @param ids
     * @return
     */
    boolean deleteById(Long[] ids);

}
